﻿//-----------------------------------------------------------------------
// <copyright>
//     Copyright (c) Artur Mustafin. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Expressions.Compiler.Interfaces
{
    /// <summary>
    /// Interface for the input text and token for the specified node
    /// </summary>
    public interface IExpressionContext<T>
    {
#if TRACE
        string Name { get; }
#endif
        /// <summary>
        /// Gets the token.
        /// </summary>
        /// <value>The token.</value>
        Entity<T> Token { get; }
    }

    /// <summary>
    /// Interface for the input text and token for the specified node
    /// </summary>
    public interface IExpressionContext
    {
#if TRACE
        string Name { get; }
#endif
        /// <summary>
        /// Gets the token.
        /// </summary>
        /// <value>The token.</value>
        Entity Token { get; }
    }
}
